package com.tro.mail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tro.mail.dao.entity.MailAnnex;
import com.tro.mail.dao.entity.MailAnnexExample;
import com.tro.mail.dao.mapper.MailAnnexMapper;
import com.tro.mail.service.MailAnnexManager;

@Service
public class MailAnnexManagerImp implements MailAnnexManager{
	@Autowired
	MailAnnexMapper mapper;
	@Override
	public int countByExample(MailAnnexExample example) {
		
		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(MailAnnexExample example) {
		
		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {
		
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(MailAnnex record) {
		
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(MailAnnex record) {
		
		return mapper.insertSelective(record);
	}

	@Override
	public List<MailAnnex> selectByExample(MailAnnexExample example) {
		
		return mapper.selectByExample(example);
	}

	@Override
	public MailAnnex selectByPrimaryKey(Long id) {
		
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(MailAnnex record, MailAnnexExample example) {
		
		return mapper.updateByExampleSelective(record,example);
	}

	@Override
	public int updateByExample(MailAnnex record, MailAnnexExample example) {
		
		return mapper.updateByExample(record,example);
	}

	@Override
	public int updateByPrimaryKeySelective(MailAnnex record) {
		
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(MailAnnex record) {
		
		return mapper.updateByPrimaryKey(record);
	}
    
}